home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIByteRangeRequest.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  125 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIByteRangeRequest.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIByteRangeRequest_h__
  6. #define __gen_nsIByteRangeRequest_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIByteRangeRequest */
  19. #define NS_IBYTERANGEREQUEST_IID_STR "c1b1f426-7e83-4759-9f88-0e1b17f49366"
  20.  
  21. #define NS_IBYTERANGEREQUEST_IID \
  22.   {0xc1b1f426, 0x7e83, 0x4759, \
  23.     { 0x9f, 0x88, 0x0e, 0x1b, 0x17, 0xf4, 0x93, 0x66 }}
  24.  
  25. class NS_NO_VTABLE nsIByteRangeRequest : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBYTERANGEREQUEST_IID)
  29.  
  30.   /** 
  31.      * Returns true IFF this request is a byte range request, otherwise it
  32.      * returns false (This is effectively the same as checking to see if 
  33.      * |startRequest| is zero and |endRange| is the content length.)
  34.      */
  35.   /* readonly attribute boolean isByteRangeRequest; */
  36.   NS_IMETHOD GetIsByteRangeRequest(PRBool *aIsByteRangeRequest) = 0;
  37.  
  38.   /** 
  39.      * Absolute start position in remote file for this request.
  40.      */
  41.   /* readonly attribute long long startRange; */
  42.   NS_IMETHOD GetStartRange(PRInt64 *aStartRange) = 0;
  43.  
  44.   /**
  45.      * Absolute end postion in remote file for this request
  46.      */
  47.   /* readonly attribute long long endRange; */
  48.   NS_IMETHOD GetEndRange(PRInt64 *aEndRange) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIBYTERANGEREQUEST \
  54.   NS_IMETHOD GetIsByteRangeRequest(PRBool *aIsByteRangeRequest); \
  55.   NS_IMETHOD GetStartRange(PRInt64 *aStartRange); \
  56.   NS_IMETHOD GetEndRange(PRInt64 *aEndRange); 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  59. #define NS_FORWARD_NSIBYTERANGEREQUEST(_to) \
  60.   NS_IMETHOD GetIsByteRangeRequest(PRBool *aIsByteRangeRequest) { return _to GetIsByteRangeRequest(aIsByteRangeRequest); } \
  61.   NS_IMETHOD GetStartRange(PRInt64 *aStartRange) { return _to GetStartRange(aStartRange); } \
  62.   NS_IMETHOD GetEndRange(PRInt64 *aEndRange) { return _to GetEndRange(aEndRange); } 
  63.  
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  65. #define NS_FORWARD_SAFE_NSIBYTERANGEREQUEST(_to) \
  66.   NS_IMETHOD GetIsByteRangeRequest(PRBool *aIsByteRangeRequest) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsByteRangeRequest(aIsByteRangeRequest); } \
  67.   NS_IMETHOD GetStartRange(PRInt64 *aStartRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartRange(aStartRange); } \
  68.   NS_IMETHOD GetEndRange(PRInt64 *aEndRange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndRange(aEndRange); } 
  69.  
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72.  
  73. /* Header file */
  74. class nsByteRangeRequest : public nsIByteRangeRequest
  75. {
  76. public:
  77.   NS_DECL_ISUPPORTS
  78.   NS_DECL_NSIBYTERANGEREQUEST
  79.  
  80.   nsByteRangeRequest();
  81.  
  82. private:
  83.   ~nsByteRangeRequest();
  84.  
  85. protected:
  86.   /* additional members */
  87. };
  88.  
  89. /* Implementation file */
  90. NS_IMPL_ISUPPORTS1(nsByteRangeRequest, nsIByteRangeRequest)
  91.  
  92. nsByteRangeRequest::nsByteRangeRequest()
  93. {
  94.   /* member initializers and constructor code */
  95. }
  96.  
  97. nsByteRangeRequest::~nsByteRangeRequest()
  98. {
  99.   /* destructor code */
  100. }
  101.  
  102. /* readonly attribute boolean isByteRangeRequest; */
  103. NS_IMETHODIMP nsByteRangeRequest::GetIsByteRangeRequest(PRBool *aIsByteRangeRequest)
  104. {
  105.     return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107.  
  108. /* readonly attribute long long startRange; */
  109. NS_IMETHODIMP nsByteRangeRequest::GetStartRange(PRInt64 *aStartRange)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113.  
  114. /* readonly attribute long long endRange; */
  115. NS_IMETHODIMP nsByteRangeRequest::GetEndRange(PRInt64 *aEndRange)
  116. {
  117.     return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119.  
  120. /* End of implementation class template. */
  121. #endif
  122.  
  123.  
  124. #endif /* __gen_nsIByteRangeRequest_h__ */
  125.